gtk4.git
9 years agobutton: Stop implementing GtkActivatable
Timm Bäder [Wed, 12 Oct 2016 20:06:44 +0000 (22:06 +0200)]
button: Stop implementing GtkActivatable

9 years agobutton: Stop checking for GtkSettings:gtk-button-images setting
Timm Bäder [Wed, 12 Oct 2016 20:04:15 +0000 (22:04 +0200)]
button: Stop checking for GtkSettings:gtk-button-images setting

9 years agoStop checking GtkSettings:gtk-enable-mnemonics
Timm Bäder [Wed, 12 Oct 2016 19:56:23 +0000 (21:56 +0200)]
Stop checking GtkSettings:gtk-enable-mnemonics

9 years agowidget: Remove push/pop_composite_child
Timm Bäder [Wed, 12 Oct 2016 18:01:31 +0000 (20:01 +0200)]
widget: Remove push/pop_composite_child

as well as the composite-child property

9 years agowidget: Remove gtk_widget_get_pointer
Timm Bäder [Wed, 12 Oct 2016 17:48:16 +0000 (19:48 +0200)]
widget: Remove gtk_widget_get_pointer

9 years agowidget: Remove docs for style-set
Timm Bäder [Wed, 12 Oct 2016 17:46:46 +0000 (19:46 +0200)]
widget: Remove docs for style-set

9 years agowidget: Remove gtk_widget_reparent
Timm Bäder [Wed, 12 Oct 2016 17:46:23 +0000 (19:46 +0200)]
widget: Remove gtk_widget_reparent

9 years agoscrollbar: Remove style property
Timm Bäder [Tue, 11 Oct 2016 14:43:29 +0000 (16:43 +0200)]
scrollbar: Remove style property

9 years agobuiltinicon: remove unused struct member
Timm Bäder [Tue, 11 Oct 2016 14:43:11 +0000 (16:43 +0200)]
builtinicon: remove unused struct member

9 years agomenuitem: Remove right-justify
Timm Bäder [Tue, 11 Oct 2016 14:41:22 +0000 (16:41 +0200)]
menuitem: Remove right-justify

9 years agolabel: Stop using GdkColor
Timm Bäder [Tue, 11 Oct 2016 13:57:00 +0000 (15:57 +0200)]
label: Stop using GdkColor

9 years agocellrenderer: Remove cell-background-gdk
Timm Bäder [Tue, 11 Oct 2016 13:27:20 +0000 (15:27 +0200)]
cellrenderer: Remove cell-background-gdk

9 years agogtksettings: Remove Deprecated API
Timm Bäder [Tue, 11 Oct 2016 13:04:17 +0000 (15:04 +0200)]
gtksettings: Remove Deprecated API

9 years agowindow: Remove reshow_with_initial_size
Timm Bäder [Tue, 11 Oct 2016 12:50:22 +0000 (14:50 +0200)]
window: Remove reshow_with_initial_size

9 years agoviewport: remove deprecated api
Timm Bäder [Tue, 11 Oct 2016 12:45:43 +0000 (14:45 +0200)]
viewport: remove deprecated api

9 years agogtkdnd: Remove gtk_drag_begin
Timm Bäder [Tue, 11 Oct 2016 12:41:30 +0000 (14:41 +0200)]
gtkdnd: Remove gtk_drag_begin

9 years agogtkmain: Remove deprecated key snooper API
Timm Bäder [Tue, 11 Oct 2016 12:37:22 +0000 (14:37 +0200)]
gtkmain: Remove deprecated key snooper API

9 years agotreeview: Remove unused style properties
Timm Bäder [Tue, 11 Oct 2016 11:34:49 +0000 (13:34 +0200)]
treeview: Remove unused style properties

9 years agobbox: Remove style properties
Timm Bäder [Tue, 11 Oct 2016 11:29:05 +0000 (13:29 +0200)]
bbox: Remove style properties

9 years agogtkdialog: Remove style properties
Timm Bäder [Tue, 11 Oct 2016 11:16:18 +0000 (13:16 +0200)]
gtkdialog: Remove style properties

9 years agocolorbutton: Remove deprecated API
Timm Bäder [Tue, 11 Oct 2016 11:10:02 +0000 (13:10 +0200)]
colorbutton: Remove deprecated API

9 years agomenu: Remove vertical/horizontal-offset style properties
Timm Bäder [Tue, 11 Oct 2016 10:07:33 +0000 (12:07 +0200)]
menu: Remove vertical/horizontal-offset style properties

9 years agonotebook: Remove deprecated public API
Timm Bäder [Tue, 11 Oct 2016 07:48:26 +0000 (09:48 +0200)]
notebook: Remove deprecated public API

9 years agotoolbar: Remove button-relief style property
Timm Bäder [Tue, 11 Oct 2016 07:44:36 +0000 (09:44 +0200)]
toolbar: Remove button-relief style property

And in turn also public API to set the button relief on the toolbar as
well as the vfunc from GtkToolShell.

9 years agotextview: Remove error-underline-color style property
Timm Bäder [Tue, 11 Oct 2016 07:44:21 +0000 (09:44 +0200)]
textview: Remove error-underline-color style property

9 years agotoolbutton: Remove icon-spacing style property
Timm Bäder [Tue, 11 Oct 2016 07:33:12 +0000 (09:33 +0200)]
toolbutton: Remove icon-spacing style property

9 years agoseparatortoolitem: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:22:04 +0000 (00:22 +0200)]
separatortoolitem: Use gdk_window_new_input()

9 years agospinbutton: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:21:54 +0000 (00:21 +0200)]
spinbutton: Use gdk_window_new_input()

9 years agoswitch: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:21:45 +0000 (00:21 +0200)]
switch: Use gdk_window_new_input()

9 years agopathbar: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:21:33 +0000 (00:21 +0200)]
pathbar: Use gdk_window_new_input()

9 years agopaned: Use gdk_window_new_child() and gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:21:17 +0000 (00:21 +0200)]
paned: Use gdk_window_new_child() and gdk_window_new_input()

9 years agonotebook: Use gdk_window_new_child() and gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 22:20:47 +0000 (00:20 +0200)]
notebook: Use gdk_window_new_child() and gdk_window_new_input()

9 years agomenu: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 22:20:32 +0000 (00:20 +0200)]
menu: Use gdk_window_new_child()

9 years agolayout: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 22:20:17 +0000 (00:20 +0200)]
layout: Use gdk_window_new_child()

9 years agoiconview: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 22:20:02 +0000 (00:20 +0200)]
iconview: Use gdk_window_new_child()

9 years agotoolitemgroup: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:23:17 +0000 (20:23 +0200)]
toolitemgroup: Use gdk_window_new_child()

9 years agotoolitem: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:23:04 +0000 (20:23 +0200)]
toolitem: Use gdk_window_new_input()

9 years agotoolbar: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:22:47 +0000 (20:22 +0200)]
toolbar: Use gdk_window_new_input()

9 years agopopover: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:22:33 +0000 (20:22 +0200)]
popover: Use gdk_window_new_child()

9 years agomenushell: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:22:16 +0000 (20:22 +0200)]
menushell: Use gdk_window_new_child()

9 years agolabel: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:21:55 +0000 (20:21 +0200)]
label: Use gdk_window_new_input()

9 years agomenuitem: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:21:42 +0000 (20:21 +0200)]
menuitem: Use gdk_window_new_input()

9 years agooverlay: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:21:21 +0000 (20:21 +0200)]
overlay: Use gdk_window_new_child()

9 years agolistbox: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:21:10 +0000 (20:21 +0200)]
listbox: Use gdk_window_new_child()

9 years agoflowbox: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:21:00 +0000 (20:21 +0200)]
flowbox: Use gdk_window_new_child()

9 years agofixed: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:20:48 +0000 (20:20 +0200)]
fixed: Use gdk_window_new_child()

9 years agoscrolledwindow: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:20:32 +0000 (20:20 +0200)]
scrolledwindow: Use gdk_window_new_child()

9 years agorevealer: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:20:14 +0000 (20:20 +0200)]
revealer: Use gdk_window_new_child()

9 years agostack: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:20:05 +0000 (20:20 +0200)]
stack: Use gdk_window_new_child()

9 years agotextview: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:19:49 +0000 (20:19 +0200)]
textview: Use gdk_window_new_child()

9 years agoviewport: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:19:32 +0000 (20:19 +0200)]
viewport: Use gdk_window_new_child()

9 years agotoolpalette: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:19:10 +0000 (20:19 +0200)]
toolpalette: Use gdk_window_new_child()

9 years agoglarea: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:18:54 +0000 (20:18 +0200)]
glarea: Use gdk_window_new_input()

9 years agoexpander: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:18:33 +0000 (20:18 +0200)]
expander: Use gdk_window_new_input()

9 years agowindow: Use gdk_window_new_child() and gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:18:08 +0000 (20:18 +0200)]
window: Use gdk_window_new_child() and gdk_window_new_input()

9 years agotests: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:17:03 +0000 (20:17 +0200)]
tests: Use gdk_window_new_child()

9 years agotreeviewcolumn: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:16:34 +0000 (20:16 +0200)]
treeviewcolumn: Use gdk_window_new_input()

9 years agotreeview: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:16:12 +0000 (20:16 +0200)]
treeview: Use gdk_window_new_child()

9 years agoeventbox: Use gdk_window_new_input() and gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:15:22 +0000 (20:15 +0200)]
eventbox: Use gdk_window_new_input() and gdk_window_new_child()

9 years agoentry: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:15:05 +0000 (20:15 +0200)]
entry: Use gdk_window_new_input()

9 years agodrawingarea: Use gdk_window_new_child()
Benjamin Otte [Mon, 17 Oct 2016 18:14:49 +0000 (20:14 +0200)]
drawingarea: Use gdk_window_new_child()

9 years agocolorswatch: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:14:32 +0000 (20:14 +0200)]
colorswatch: Use gdk_window_new_input()

9 years agocalendar: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:14:09 +0000 (20:14 +0200)]
calendar: Use gdk_window_new_input()

9 years agobutton: Use gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:13:46 +0000 (20:13 +0200)]
button: Use gdk_window_new_input()

9 years agoAPI: gdk: Add gdk_window_new_child() and gdk_window_new_input()
Benjamin Otte [Mon, 17 Oct 2016 18:11:23 +0000 (20:11 +0200)]
API: gdk: Add gdk_window_new_child() and gdk_window_new_input()

This is an attempt to get rid of gdk_window_new() for more specific use
cases. These 2 are for client-side windows - regular ones and input-only
ones resepectively.

So far all those functions just call into gdk_window_new().

9 years agocolorscale: Avoid invalid write
Timm Bäder [Mon, 17 Oct 2016 16:34:07 +0000 (18:34 +0200)]
colorscale: Avoid invalid write

9 years agoFix to Catalan translation
Jordi Mas [Mon, 17 Oct 2016 16:23:29 +0000 (18:23 +0200)]
Fix to Catalan translation

9 years agocssprovider: Return void, not TRUE
Benjamin Otte [Mon, 17 Oct 2016 15:41:03 +0000 (17:41 +0200)]
cssprovider: Return void, not TRUE

Parsing a css file always succeeds as CSS can recover from parsing
errors.

9 years agocssprovider: Remove GError out argument from load functions
Benjamin Otte [Mon, 17 Oct 2016 14:09:12 +0000 (16:09 +0200)]
cssprovider: Remove GError out argument from load functions

People should use the GtkCssProvider::parsing-error signal instead.

9 years agotextbufferserialize: declare set_error as G_GNUC_PRINTF
Ben Iofel [Mon, 17 Oct 2016 14:36:26 +0000 (10:36 -0400)]
textbufferserialize: declare set_error as G_GNUC_PRINTF

And fix a missing format argument

9 years agocolorscale: modify loop variables in loop body
Ben Iofel [Mon, 17 Oct 2016 14:14:19 +0000 (10:14 -0400)]
colorscale: modify loop variables in loop body

9 years agobuild: Use correct compiler flag
Emmanuele Bassi [Mon, 17 Oct 2016 14:12:21 +0000 (15:12 +0100)]
build: Use correct compiler flag

The name is -Wformat-nonliteral.

9 years agogtk+: Fix GI warnings about missing parameters
Garrett Regier [Mon, 17 Oct 2016 14:02:37 +0000 (07:02 -0700)]
gtk+: Fix GI warnings about missing parameters

These were removed for GTK+ 4.

9 years agobroadway: Remove redundant declaration
Emmanuele Bassi [Mon, 17 Oct 2016 13:56:38 +0000 (14:56 +0100)]
broadway: Remove redundant declaration

9 years agogtk/utils: Include stdio.h
Emmanuele Bassi [Mon, 17 Oct 2016 13:51:16 +0000 (14:51 +0100)]
gtk/utils: Include stdio.h

We need it because of the declaration using FILE*.

9 years agogtkicontheme: check if the context quark string is not null
Ignacio Casal Quinteiro [Mon, 17 Oct 2016 11:02:26 +0000 (13:02 +0200)]
gtkicontheme: check if the context quark string is not null

On windows you might not have a theme installed by default which
means that when trying to create the context quark it will fail.
If then we try to replace a NULL key in the hash table it will crash.

https://bugzilla.gnome.org/show_bug.cgi?id=769859

9 years agoRemove redundant variable declaration
Emmanuele Bassi [Mon, 17 Oct 2016 10:52:00 +0000 (11:52 +0100)]
Remove redundant variable declaration

The inner `var` declaration is shadowing the outer one.

9 years agobuild: Add various compiler warnings and errors
Emmanuele Bassi [Sat, 15 Oct 2016 20:39:31 +0000 (21:39 +0100)]
build: Add various compiler warnings and errors

Just like GLib, GTK+ would benefit from getting warnings and errors from
the compilers.

We check various, common warnings, especially for a future use of C99;
additionally, we promote some warnings to errors, in order to ensure
that simple mistakes are caught during the development phase, before
they are submitted to the code repository.

9 years agonotebook: Remove redundant variable declarations
Emmanuele Bassi [Mon, 17 Oct 2016 10:43:06 +0000 (11:43 +0100)]
notebook: Remove redundant variable declarations

We're already declaring notebook and priv at the top of the function,
and assigning them to the same values.

9 years agoicontheme: Drop unnecessary allocation
Emmanuele Bassi [Mon, 17 Oct 2016 10:34:36 +0000 (11:34 +0100)]
icontheme: Drop unnecessary allocation

Use a static array for the known icon sizes, now that we don't allow
registering custom icon sizes any more. This allows us to cut a one-off
allocation that makes Valgrind sad.

9 years agoAvoid variable shadowing in GtkShortcutsSection
Emmanuele Bassi [Sat, 15 Oct 2016 20:38:21 +0000 (21:38 +0100)]
Avoid variable shadowing in GtkShortcutsSection

9 years agoRemove declarations for getresuid()/getresgid()
Emmanuele Bassi [Sat, 15 Oct 2016 20:35:10 +0000 (21:35 +0100)]
Remove declarations for getresuid()/getresgid()

Back in 2001, their prototypes were missing from system headers, but
since glibc 2.3.2 they are defined in unistd.h if _GNU_SOURCE is
defined.

9 years agogtk: Add missing function declarations
Emmanuele Bassi [Sat, 15 Oct 2016 20:34:52 +0000 (21:34 +0100)]
gtk: Add missing function declarations

9 years agotext: Constify field of GtkTextLineSegmentClass
Emmanuele Bassi [Sat, 15 Oct 2016 20:33:11 +0000 (21:33 +0100)]
text: Constify field of GtkTextLineSegmentClass

We only use it internally for statically allocated structures, with
static strings, so there's no reason for it to be a `char*`.

9 years agogtk: Use appropriate constness for variables
Emmanuele Bassi [Sat, 15 Oct 2016 20:32:51 +0000 (21:32 +0100)]
gtk: Use appropriate constness for variables

9 years agofilechooserwidget: Rename error variable
Emmanuele Bassi [Sat, 15 Oct 2016 20:30:47 +0000 (21:30 +0100)]
filechooserwidget: Rename error variable

Avoid shadowing an existing error.

9 years agofilechooserbutton: Remove unnecessary declaration
Emmanuele Bassi [Sat, 15 Oct 2016 20:30:27 +0000 (21:30 +0100)]
filechooserbutton: Remove unnecessary declaration

9 years agogtk: Mark internal functions as static
Emmanuele Bassi [Sat, 15 Oct 2016 20:29:45 +0000 (21:29 +0100)]
gtk: Mark internal functions as static

These functions are only used within their compilation unit.

9 years agocolorscale: Rename variables
Emmanuele Bassi [Sat, 15 Oct 2016 20:27:49 +0000 (21:27 +0100)]
colorscale: Rename variables

Avoid shadowing existing variables.

9 years agocellview: Constify argument
Emmanuele Bassi [Sat, 15 Oct 2016 20:27:23 +0000 (21:27 +0100)]
cellview: Constify argument

9 years agogtk: Cast static strings assigned to non-const variables
Emmanuele Bassi [Sat, 15 Oct 2016 20:24:42 +0000 (21:24 +0100)]
gtk: Cast static strings assigned to non-const variables

GtkTargetEntry.target is particularly egregious, and it should really be
constified.

9 years agogtk: Include the appropriate headers
Emmanuele Bassi [Sat, 15 Oct 2016 20:22:48 +0000 (21:22 +0100)]
gtk: Include the appropriate headers

9 years agowidget: Make gtk_widget_get_parent_muxer() as static
Emmanuele Bassi [Sat, 15 Oct 2016 20:20:35 +0000 (21:20 +0100)]
widget: Make gtk_widget_get_parent_muxer() as static

It's a private function, used only inside gtkwidget.c and not declared
in any private header.

9 years agoinspector: Mark internal function as static
Emmanuele Bassi [Sat, 15 Oct 2016 20:19:39 +0000 (21:19 +0100)]
inspector: Mark internal function as static

9 years agoRemove redundant declarations
Emmanuele Bassi [Sat, 15 Oct 2016 20:19:12 +0000 (21:19 +0100)]
Remove redundant declarations

9 years agogdk/x11: Constify argument
Emmanuele Bassi [Sat, 15 Oct 2016 20:13:04 +0000 (21:13 +0100)]
gdk/x11: Constify argument

9 years agoAdd private header for GtkTextView
Emmanuele Bassi [Sat, 15 Oct 2016 19:38:13 +0000 (20:38 +0100)]
Add private header for GtkTextView

This allows us to declare the symbols that are currently used inside
gtktextdisplay.c without incurring in the wrath of the compiler.

9 years agoRemove redundant declarations
Emmanuele Bassi [Fri, 14 Oct 2016 18:36:50 +0000 (19:36 +0100)]
Remove redundant declarations

9 years agoFix _gtk_get_slowdown()
Emmanuele Bassi [Fri, 14 Oct 2016 18:35:59 +0000 (19:35 +0100)]
Fix _gtk_get_slowdown()

We need to pass void as the argument type.

9 years agoRemove redundant declarations
Emmanuele Bassi [Fri, 14 Oct 2016 18:35:40 +0000 (19:35 +0100)]
Remove redundant declarations